<template>
  <!-- ===== container start ===== -->
  <div class="container bgc-fc">
    <div class="banner flex flex-center">
      <div class="text-center">
        <h2>橙券新闻动态</h2>
        <p>
          新闻动态抢先看，从能力输出到技术赋能，橙券从未放缓脚步，只为与您见证橙券成长的每一步！
        </p>
      </div>
    </div>
    <ul class="w-1200 fz16 c-333 flex flex-between flex-wrap">
      <li :key="item.id" v-for="item in news">
        <img :src="item.src" alt="news" width="386" height="219" />
        <p>{{ item.cont }}</p>
        <p>{{ item.time }}</p>
      </li>
    </ul>
    <div class="skip flex flex-between psr">
      <a href="#">1</a>
      <a href="#">2</a>
      <a href="#">3</a>
      <a href="#">4</a>
      <a href="#" class="skip-button skip-left-button psa"></a>
      <a href="#" class="skip-button skip-right-button psa"></a>
    </div>
  </div>
</template>
<script>
// import CqBannner from './components/cq-bannner.vue'
export default {
  name: 'news-page',
  // components: { CqBannner },
  data() {
    return {
      news: [
        {
          src: require('@/assets/img/newsCentre-1-1.png'),
          cont: '笃行，致远，致我们不平凡的2019！',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-2.png'),
          cont: '人生一串，肆意欢歌——鼎信海边烧烤嘻游记',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-3.png'),
          cont: '携手猜谜，欢度元宵佳节',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-4.png'),
          cont: '莱山区政协与科技局领导一行莅临鼎信考察调研',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-5.png'),
          cont: '莱山区政协与科技局领导一行莅临鼎信考察调研',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-6.png'),
          cont: '礼遇初春，宠爱女神',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-7.png'),
          cont: '礼遇良辰——花好月圆时，中秋福利到',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-8.png'),
          cont: '亲近自然，放飞心情——记2018鼎信年度旅游',
          time: '2018-05-01'
        },
        {
          src: require('@/assets/img/newsCentre-1-9.png'),
          cont: '山东工商学院大学生赴鼎信参观学习',
          time: '2018-05-01'
        }
      ]
    }
  },
  mounted() {},
  methods: {}
}
</script>
<style lang="scss" scoped>
/* ======= banner start ======= */
.banner {
  height: 200px;
  background: #fff url("@/assets/img/news-banner.png") no-repeat center/cover;
}
/* ======= banner start ======= */
.banner {
  margin-top: 80px;
  height: 350px;
  width: 100%;
  color: #fff;
}
.banner h2 {
  margin-bottom: 24px;
  font-size: 40px;
  line-height: 40px;
  font-weight: 400;
}
.banner p {
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
}
/* ===== container start =====  */
.container ul {
  padding-top: 82px;
}

.container ul li img {
  width: 100%;
  height: auto;
}
.container ul li p {
  margin: 20px 0 0 20px;
}
.container li p:nth-of-type(2) {
  font-size: 14px;
  color: #666;
}
.container ul li:hover {
  box-shadow: 0 0 8px #ccc;
  border: none;
}
.container ul li:hover p:nth-of-type(1) {
  color: #ff7200;
}
/* ======= skip start ======= */
.skip {
  margin: 0 auto;
  padding-bottom: 60px;
  width: 186px;
}
.skip a:nth-of-type(-n + 4) {
  display: block;
  width: 35px;
  line-height: 35px;
  text-align: center;
  border-radius: 18px;
  color: #666;
}
.skip a:nth-of-type(-n + 4):hover {
  color: #fff;
  background-color: #ff7200;
}
/*===== skip  button start ===== */
.skip-button {
  width: 22px;
  height: 22px;
  background-size: 22px 22px;
}
.skip-left-button {
  right: 210px;
  background-image: url("@/assets/img/newsCenter-left.png");
}
.skip-right-button {
  left: 210px;
  background-image: url("@/assets/img/newsCenter-right.png");
}
.skip-left-button:hover {
  background-image: url("@/assets/img/newsCenter-left-1.png");
}
.skip-right-button:hover {
  background-image: url("@/assets/img/newsCenter-right-1.png");
}

/* ======= banner start ======= */
.banner {
  margin-top: 80px;
  height: 350px;
  width: 100%;
  color: #fff;
}
.banner h2 {
  margin-bottom: 24px;
  font-size: 40px;
  line-height: 40px;
  font-weight: 400;
}
.banner p {
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
}

.container ul {
  padding-top: 82px;
}

.container ul li {
  box-sizing: border-box;
  margin-bottom: 60px;
  padding-bottom: 22px;
  width: 386px;
  border: 1px solid #f4f4f4;
  cursor: pointer;
  background-color: #fff;
  flex-shrink: 0;
}

.container ul li img {
  width: 100%;
  height: auto;
}

.container ul li p {
  margin: 20px 0 0 20px;
}
</style>
